﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SQLite;
using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;

namespace SQLiteHelp
{
    public class News
    {
        public DataTable GetUserList()
        {
            Database db = DatabaseFactory.CreateDatabase("SQLiteDB");
            DbCommand command = db.GetSqlStringCommand("select * from news");
            return db.ExecuteDataSet(command).Tables[0];
        }
    }
}
